package es.app.daos;

import java.util.List;

import es.app.beans.Player;
import es.app.util.GenericDAOHibernate;

public class PlayerDAOImpl extends GenericDAOHibernate<Player, Integer>{
	
	@Override
	public List<Player> findAll() throws RuntimeException {
		return getHibernateTemplate().loadAll(Player.class);
	}
	@Override
	public Player findById(Integer id) throws RuntimeException {
		return (Player)getHibernateTemplate().get(Player.class, id);
	}
	
	

}
